<?php

function imprimirEncabezado() {
    echo "<header style='height: 100px'>"
    . "<div>"
    . "<div>"
    . "<h1></h1>"
    . "<nav>"
    . "<ul class='menu'>"
    . "</ul>"
    . "</nav>"
    . "<div class='clear'></div>"
    . "</div>"
    . "</div>"
    . "</header>";
}


function imprimirPie() {
    echo "<footer><small>"
    . "<p>© " . date("Y") . " Universidad de San Carlos de Guatemala<br>"
    . "</small></footer>";
}

function getTitle() {
    echo "Mi Evento";
}
function getIconTitle() {
    return "<link rel='shortcut icon' href='images/iconoTitulo.png' type='image/png' >";
}



function getMsgError($msg) {
    echo "<div class='alert-box error'><span>Error!</span><br>$msg</div>";
}

function getMsgSuccess($msg) {
    echo "<div class='alert-box success'><span>Hecho!</span><br>$msg</div>";
}

function getMsgWarning($msg) {
    echo "<div class='alert-box warning'><span>Advertencia!</span><br>$msg</div>";
}

function getMsgNotice($msg) {
    echo "<div class='alert-box notice'><span>Informaci&oacute;n</span><br>$msg</div>";
}

function getLinksHomeBack($back){
    $menu = "Menu.php";
    if($_SESSION['ROL'] == 3){//empresa
        $menu = "MenuEmpresa.php";
    }
    echo '<table cellspacing="10" cellpadding="" style="float:left">
            <tr>
                <td>
                    <a href="'.$back.'">
                        <img src="images/direction_left.png" width="30" height="30" />
                    </a>
                </td>
                <td>
                    <a href="'.$menu.'">
                        <img src="images/gohome.png" width="30" height="30" />
                    </a>
                </td>
            </tr>
        </table>';
}



?>
